/*
* Copyright (c) 2011 Connection Road.  All rights reserved.
* This program and the accompanying material are made available
* under the terms of the Eclipse Public Licnese v1.0 which is
* available at http://www.eclipse.org/legal/epl-v10.html
*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrSyncFilesForms.Properties;
using CrSyncFilesForms.Utils;

namespace CrSyncFilesForms
{
    public partial class CrSyncUiWizardHelpDialog : Form
    {
        public CrSyncUiWizardHelpDialog()
        {
            InitializeComponent();
        }

        private void CrSyncUiWizardHelpDialogLoad(object sender, EventArgs e)
        {
            BackColor = CRSyncColors.DialogBackGround;

            var bytesArray = Encoding.ASCII.GetBytes(Resources.Folder_Pair_Creation_Help);
            var memoryStream = new MemoryStream(bytesArray);
            
            RichTextBoxMain.LoadFile(memoryStream, RichTextBoxStreamType.RichText);
            RichTextBoxMain.DetectUrls = false;
        }

        private void ButtonCloseClick(object sender, EventArgs e)
        {
            Close();
        }

        
    }
}
